Package io. realm. kotlin. ext
Functions
asBsonObjectId
Link copied to clipboard
asFlow
Link copied to clipboard
asRealmObject
Link copied to clipboard
backlinks
Link copied to clipboard
inline fun <T : TypedRealmObject> EmbeddedRealmObject.backlinks(sourceProperty: KProperty1<T, *>): EmbeddedBacklinksDelegate<T>
Content copied to clipboard
Returns a BacklinksDelegate that represents the inverse relationship between two an EmbeddedRealmObject and a TypedRealmObject.
inline fun <T : TypedRealmObject> RealmObject.backlinks(sourceProperty: KProperty1<T, *>): BacklinksDelegate<T>
Content copied to clipboard
Returns a BacklinksDelegate that represents the inverse relationship between two Realm models.
fun <T : TypedRealmObject> EmbeddedRealmObject.backlinks(sourceProperty: KProperty1<T, *>, sourceClass: KClass<T>): EmbeddedBacklinksDelegate<T>
Content copied to clipboard
Defines a backlink that represents a one-to-one inverse relationship between an EmbeddedRealmObject and a TypedRealmObject.
fun <T : TypedRealmObject> RealmObject.backlinks(sourceProperty: KProperty1<T, *>, sourceClass: KClass<T>): BacklinksDelegate<T>
Content copied to clipboard
copyFromRealm
Link copied to clipboard
inline fun <T : TypedRealmObject> T.copyFromRealm(depth: UInt = UInt.MAX_VALUE): T
Content copied to clipboard
Makes an unmanaged in-memory copy of an already persisted io.realm.kotlin.types.RealmObject.
inline fun <T : TypedRealmObject> RealmResults<T>.copyFromRealm(depth: UInt = UInt.MAX_VALUE): List<T>
Content copied to clipboard
Makes an unmanaged in-memory copy of the elements in a RealmResults.
inline fun <T : RealmObject> RealmDictionary<T?>.copyFromRealm(depth: UInt = UInt.MAX_VALUE): Map<String, T?>
Content copied to clipboard
Makes an unmanaged in-memory copy of the elements in a managed RealmDictionary.
inline fun <T : TypedRealmObject> RealmList<T>.copyFromRealm(depth: UInt = UInt.MAX_VALUE): List<T>
Content copied to clipboard
Makes an unmanaged in-memory copy of the elements in a managed RealmList.
inline fun <T : RealmObject> RealmSet<T>.copyFromRealm(depth: UInt = UInt.MAX_VALUE): Set<T>
Content copied to clipboard
Makes an unmanaged in-memory copy of the elements in a managed RealmSet.
isFrozen
Link copied to clipboard
isManaged
Link copied to clipboard
isValid
Link copied to clipboard
parent
Link copied to clipboard
fun <T : TypedRealmObject> EmbeddedRealmObject.parent(parentClass: KClass<T>): T
Content copied to clipboard
Gets the parent of the embedded object, embedded objects always have an unique parent, that could be a RealmObject or another EmbeddedRealmObject.
query
Link copied to clipboard
inline fun <T : BaseRealmObject> MutableRealm.query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Content copied to clipboard
inline fun <T : BaseRealmObject> Realm.query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Content copied to clipboard
inline fun <T : BaseRealmObject> TypedRealm.query(query: String = TRUE_PREDICATE, vararg args: Any?): RealmQuery<T>
Content copied to clipboard
fun <T : BaseRealmObject> RealmDictionary<T?>.query(filter: String = TRUE_PREDICATE, vararg arguments: Any?): RealmQuery<T>
Content copied to clipboard
fun <T : BaseRealmObject> RealmList<T>.query(filter: String = TRUE_PREDICATE, vararg arguments: Any?): RealmQuery<T>
Content copied to clipboard
fun <T : BaseRealmObject> RealmSet<T>.query(filter: String = TRUE_PREDICATE, vararg arguments: Any?): RealmQuery<T>
Content copied to clipboard
realmDictionaryEntryOf
Link copied to clipboard
fun <V> realmDictionaryEntryOf(pair: Pair<String, V>): RealmDictionaryMutableEntry<V>
Content copied to clipboard
Instantiates an unmanagedRealmDictionaryMutableEntry from a Pair of String and V that can be added to an entry set produced by RealmDictionary.entries.
fun <V> realmDictionaryEntryOf(entry: Map.Entry<String, V>): RealmDictionaryMutableEntry<V>
Content copied to clipboard
Instantiates an unmanagedRealmMapMutableEntry from another Map.Entry that can be added to an entry set produced by RealmDictionary.entries.
fun <V> realmDictionaryEntryOf(key: String, value: V): RealmDictionaryMutableEntry<V>
Content copied to clipboard
Instantiates an unmanagedRealmMapMutableEntry from a key-value pair that can be added to an entry set produced by RealmDictionary.entries.
realmDictionaryOf
Link copied to clipboard
fun <T> realmDictionaryOf(vararg elements: Pair<String, T>): RealmDictionary<T>
Content copied to clipboard
fun <T> realmDictionaryOf(elements: Collection<Pair<String, T>>): RealmDictionary<T>
Content copied to clipboard
realmListOf
Link copied to clipboard
realmSetOf
Link copied to clipboard
toRealmDictionary
Link copied to clipboard
fun <T> Iterable<Pair<String, T>>.toRealmDictionary(): RealmDictionary<T>
Content copied to clipboard
Instantiates an unmanagedRealmDictionary containing all the elements of this iterable of Pairs of Strings and Ts.
Instantiates an unmanagedRealmDictionary containing all the elements of the receiver dictionary represented by a Map of String to T pairs.
fun <T> RealmDictionaryEntrySet<T>.toRealmDictionary(): RealmDictionary<T>
Content copied to clipboard
Instantiates an unmanagedRealmDictionary containing all the elements of the receiver RealmDictionaryEntrySet.
toRealmList
Link copied to clipboard
toRealmSet
Link copied to clipboard
version
Link copied to clipboard